package com.lam.common.exception;

import org.springframework.security.access.AccessDeniedException;

public class NoPermissionException extends AccessDeniedException{
	
	private static final long serialVersionUID = 1L;

	/**
	 * Constructs an <code>AccessDeniedException</code> with the specified message.
	 *
	 * @param msg the detail message
	 */
	public NoPermissionException(String msg) {
		super("不允许访问："+msg);
	}

	/**
	 * Constructs an <code>AccessDeniedException</code> with the specified message and
	 * root cause.
	 *
	 * @param msg the detail message
	 * @param t root cause
	 */
	public NoPermissionException(String msg, Throwable t) {
		super("不允许访问："+msg, t);
	}
	
}
